<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>自动气象站数据实时信息发布系统</title>

    <meta name="keywords" content="">
    <meta name="description" content="">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" th:href="@{/css/bootstrap.min.css?v=3.3.6}" rel="stylesheet">
    <link href="css/font-awesome.min.css?v=4.4.0" th:href="@{/css/font-awesome.min.css?v=4.4.0}" rel="stylesheet">
    <link href="css/animate.css" th:href="@{/css/animate.css}" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" th:href="@{/css/style.css?v=4.1.0}" rel="stylesheet">
    <link rel="stylesheet" href="../../static/css/jquery.searchableSelect.css" th:href="@{/css/jquery/jquery.searchableSelect.css}" >

    <!-- 全局js -->
<!--    <script src="../../static/js/jquery-1.11.1.min.js"  th:src="@{/js/jquery/jquery-1.11.1.min.js}" ></script>-->
    <script src="js/jquery.min.js?v=2.1.4" th:src="@{/js/jquery.min.js}"></script>
    <script src="/static/js/jquery.searchableSelect.js"  th:src="@{/js/jquery/jquery.searchableSelect.js}"></script>
    <script src="js/bootstrap.min.js?v=3.3.6" th:src="@{/js/bootstrap.min.js?v=3.3.6}" ></script>
    <script src="js/plugins/metisMenu/jquery.metisMenu.js" th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js" th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
    <script src="js/plugins/layer/layer.min.js" th:src="@{/js/plugins/layer/layer.min.js}" ></script>
    <!-- 第三方插件 -->
<!--    <script src="js/plugins/pace/pace.min.js" th:src="@{/js/plugins/pace/pace.min.js}"></script>-->
    <script src="../static/js/jquery-ui.custom.min.js" th:src="@{/js/jquery-ui.custom.min.js}" ></script>
    <script src="../static/js/jquery-ui-1.10.4.min.js" th:src="@{/js/jquery-ui-1.10.4.min.js}"></script>
    <!-- 自定义js -->
    <script src="js/hAdmin.js?v=4.1.0" th:src="@{/js/hAdmin.js?v=4.1.0}"></script>
    <!--    <script type="text/javascript" src="js/index.js" th:src="@{/js/index.js}"></script>-->


</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<div id="wrapper">
    <!--左侧导航开始-->
    <div th:replace="include/left_navigation_bar::left_navigation_bar_style"></div>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div th:replace="include/head::head_style"></div>
        <div class="wrapper wrapper-content" id="content-main">
        <div class="row" style="height:90%;overflow-y:auto">
            <div class="col-sm-12 " >
                <div class="ibox float-e-margins" >
                    <div class="ibox-title">
                        <h5><small>当前位置 >> 气象数据修改</small>        </h5>

                    </div>
                    <div class="ibox-content" >
                        <form method="post" class="form-horizontal" action="/meteorologicalData/update" >
                            <input type="hidden" th:value="${eto.id}" id="id" name="id" >
                            <div class="form-group">
                                <label class="col-sm-1 control-label">城市：</label>

                                <div class="col-sm-3">
                                    <select id="cityId" name="cityId">
                                        <option th:each="l:${citys}" th:value="${l.id}" th:selected="${eto.cityId == l.id}"  th:text="${l.name}"></option>
                                    </select>
                                </div>
                                <div class="col-sm-1"></div>
                                <label class="col-sm-1 control-label">天气：</label>
                                <div class="col-sm-3">
                                    <input type="text" th:value="${eto.weather}" id="weather" required="" name="weather" class="form-control">
                                </div>
                            </div>
<!--                            <div class="hr-line-dashed"></div>-->
<!--                            <div class="form-group">-->
<!--                                <label class="col-sm-2 control-label">带说明信息</label>-->
<!--                                <div class="col-sm-10">-->
<!--                                    <input type="text" class="form-control"> <span class="help-block m-b-none">帮助文本，可能会超过一行，以块级元素显示</span>-->
<!--                                </div>-->
<!--                            </div>-->
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">气温：</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" th:value="${eto.airTemperature}" required="" name="airTemperature" id="airTemperature">
                                </div>
                                <div class="col-sm-1"></div>
                                <label class="col-sm-1 control-label">气压：</label>
                                <div class="col-sm-3">
                                    <input type="text" name="pressure" th:value="${eto.pressure}" required="" id="pressure" class="form-control">
                                </div>
                            </div>

                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">风力：</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" th:value="${eto.windPower}" required="" name="windPower" id="windPower">
                                </div>
                                <div class="col-sm-1"></div>
                                <label class="col-sm-1 control-label">风向：</label>
                                <div class="col-sm-3">
                                    <input type="text" name="windDirection" required="" th:value="${eto.windDirection}" id="windDirection" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">湿度：</label>
                                <div class="col-sm-3">
                                    <input type="text" class="form-control" required="" th:value="${eto.humidity}" name="humidity" id="humidity">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">空气指数：</label>
                                <div class="col-sm-1">
                                    <input type="text" class="form-control" name="airIndex" th:value="${eto.airIndex}" id="airIndex">
                                </div>

                                <div class="col-sm-3">
                                    <textarea id="airIndexDesc" name="airIndexDesc" th:text="${eto.airIndexDesc}" th:value="${eto.airIndexDesc}" class="form-control" aria-required="true"></textarea>
                                </div>
                                <label class="col-sm-1 control-label">感冒指数：</label>
                                <div class="col-sm-1">
                                    <input type="text" name="coldIndex" id="coldIndex" th:value="${eto.coldIndex}" class="form-control">
                                </div>

                                <div class="col-sm-3">
                                    <textarea id="coldIndexDesc" name="coldIndexDesc" th:value="${eto.coldIndexDesc}" th:text="${eto.coldIndexDesc}" class="form-control" aria-required="true"></textarea>
                                </div>
                            </div>

                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">紫外线指数：</label>
                                <div class="col-sm-1">
                                    <input type="text" class="form-control" th:value="${eto.uvIndex}" name="uvIndex" id="uvIndex">
                                </div>

                                <div class="col-sm-3">
                                    <textarea id="uvIndexDesc" name="uvIndexDesc" class="form-control" th:value="${eto.uvIndexDesc}" th:text="${eto.uvIndexDesc}" aria-required="true"></textarea>
                                </div>
                                <label class="col-sm-1 control-label">穿衣指数：</label>
                                <div class="col-sm-1">
                                    <input type="text" name="dressingIndex" id="dressingIndex" th:value="${eto.dressingIndex}" class="form-control">
                                </div>

                                <div class="col-sm-3">
                                    <textarea id="dressingIndexDesc" name="dressingIndexDesc" th:value="${eto.dressingIndexDesc}" th:text="${eto.dressingIndexDesc}" class="form-control"  aria-required="true"></textarea>
                                </div>
                            </div>

                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">舒适指数：</label>
                                <div class="col-sm-1">
                                    <input type="text" class="form-control" name="comfortIndex" th:value="${eto.comfortIndex}" id="comfortIndex">
                                </div>

                                <div class="col-sm-3">
                                    <textarea id="comfortIndexDesc" name="comfortIndexDesc" class="form-control" th:value="${eto.comfortIndexDesc}"th:text="${eto.comfortIndexDesc}"  aria-required="true"></textarea>
                                </div>
                                <label class="col-sm-1 control-label">化妆指数：</label>
                                <div class="col-sm-1">
                                    <input type="text" name="makeupIndex" id="makeupIndex" th:value="${eto.makeupIndex}" class="form-control">
                                </div>

                                <div class="col-sm-3">
                                    <textarea id="makeupIndexDesc" name="makeupIndexDesc" class="form-control" th:value="${eto.makeupIndexDesc}" th:text="${eto.makeupIndexDesc}" aria-required="true"></textarea>
                                </div>
                            </div>

                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">美发指数：</label>
                                <div class="col-sm-1">
                                    <input type="text" class="form-control" name="hairdressingIndex" th:value="${eto.hairdressingIndex}" id="hairdressingIndex">
                                </div>

                                <div class="col-sm-3">
                                    <textarea id="hairdressingIndexDesc" name="hairdressingIndexDesc" class="form-control" th:value="${eto.hairdressingIndexDesc}" th:text="${eto.hairdressingIndexDesc}" aria-required="true"></textarea>
                                </div>
                                <label class="col-sm-1 control-label">洗车指数：</label>
                                <div class="col-sm-1">
                                    <input type="text" name="carWashingIndex" th:value="${eto.carWashingIndex}" id="carWashingIndex" class="form-control">
                                </div>

                                <div class="col-sm-3">
                                    <textarea id="carWashingIndexDesc" name="carWashingIndexDesc" th:value="${eto.carWashingIndexDesc}" th:text="${eto.carWashingIndexDesc}" class="form-control"   aria-required="true"></textarea>
                                </div>
                            </div>

                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">逛街指数：</label>
                                <div class="col-sm-1">
                                    <input type="text" class="form-control" name="shoppingIndex" th:value="${eto.shoppingIndex}" id="shoppingIndex">
                                </div>

                                <div class="col-sm-3">
                                    <textarea id="shoppingIndexDesc" name="shoppingIndexDesc" class="form-control" th:text="${eto.shoppingIndexDesc}" th:value="${eto.shoppingIndexDesc}" aria-required="true"></textarea>
                                </div>

                            </div>
                            <div class="hr-line-dashed"></div>

                            <div class="form-group">
                                <div class="col-sm-12 col-sm-offset-2">
                                    <div class="col-sm-2"> </div>
                                    <button class="col-sm-1 btn btn-primary" type="submit">发布</button>
<!--                                    <input class="col-sm-1 btn btn-primary" onclick="addSubmit()" type="submit">发布</input>-->
                                    <div class="col-sm-1"> </div>
                                    <button class="col-sm-1 btn btn-white" onclick="back()">取消</button>
                                </div>
                            </div>







                            <!--
                                                        <div class="hr-line-dashed"></div>
                                                        <div class="form-group">
                                                            <label class="col-sm-1 control-label">风力</label>

                                                            <div class="col-sm-3">
                                                                <input type="text" placeholder="提示信息" class="form-control">
                                                            </div>
                                                        </div>
                            -->


                       </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--右侧部分结束-->
</div>


<div style="text-align:center;"></div>
</div>
</body>

<script>
    $(function(){
        $("#cityId").searchableSelect();
    });


    function back(){
        window.history.back();
    }

</script>
</html>
